﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:omaneui="clr-namespace:OMANE.Common.UI;assembly=OMANE.Common.UI"
    xmlns:local="clr-namespace:OMANE.Modules.CRT"  >

 
    
    <DataTemplate DataType="{x:Type local:VMTableauSuivi}">
        <!--<local:TableauSuivi />-->
        <local:CrtTBB />
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMParametrage}">
        <!--<local:TableauSuivi />-->
        <local:Parametrage/>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMSASComputationElement}">
        <Button Style="{DynamicResource SASButtonStyle}" RenderTransformOrigin="0.5,0.5" >
        	<Button.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Button.RenderTransform>
        </Button>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMTableView}">
        <local:TableView/>
    </DataTemplate>
<DataTemplate DataType="{x:Type local:VMGestionComptes}">
        <local:GestionComptes/>
    </DataTemplate>
    <Style x:Key="Bt1" TargetType="Button" >
		<Setter Property="Template" >
			<Setter.Value>
				<ControlTemplate TargetType="Button" >
					<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="10">
						
						<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}"  />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    
	<ImageBrush x:Key="SASLogo" ImageSource="200px-SAS_logo_horiz.svg.png" />
    
	<Style x:Key="SASButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
							<Grid.RenderTransform>
								<TransformGroup>
									<ScaleTransform/>
									<SkewTransform/>
									<RotateTransform/>
									<TranslateTransform/>
								</TransformGroup>
							</Grid.RenderTransform>
							<Path x:Name="Path_109" Data="F1 M 297.886,319.594L 333.25,284.23L 413.377,284.23L 448.741,319.594L 448.741,369.617L 413.377,404.981L 333.25,404.981L 297.886,369.617L 297.886,319.594 Z " Stretch="Fill" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="5.1" StrokeMiterLimit="2.75" Fill="{TemplateBinding Background}"/>
							<Rectangle Fill="{DynamicResource SASLogo}" VerticalAlignment="Center" HorizontalAlignment="Center" Width="75" Height="30"/>
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content=""/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsFocused" Value="True"/>
							<Trigger Property="IsDefaulted" Value="True"/>
							<Trigger Property="IsMouseOver" Value="True"/>
							<Trigger Property="IsPressed" Value="True">
								<Setter Property="RenderTransform">
									<Setter.Value>
										<TransformGroup>
											<ScaleTransform ScaleX="0.85" ScaleY="0.85"/>
											<SkewTransform/>
											<RotateTransform/>
											<TranslateTransform/>
										</TransformGroup>
									</Setter.Value>
								</Setter>
								<Setter Property="RenderTransform" TargetName="grid">
									<Setter.Value>
										<TransformGroup>
											<ScaleTransform ScaleX="0.9" ScaleY="0.9"/>
											<SkewTransform/>
											<RotateTransform/>
											<TranslateTransform/>
										</TransformGroup>
									</Setter.Value>
								</Setter>
							</Trigger>
							<Trigger Property="IsEnabled" Value="False"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
    
	
</ResourceDictionary>
